package org.pc2r.protocole.message;

import org.pc2r.protocole.EnumRequest;
import org.pc2r.protocole.RequestBuilder;

public class DeathWinnerMessage extends Message {

  private String player;
  
  public DeathWinnerMessage(EnumRequest request, String player) {
    super(request);
    this.player = player;
  }

  @Override
  public String toString() {
    StringBuilder build = new StringBuilder();
    build.append(getType()).append(RequestBuilder.SEPARATOR);
    build.append(player).append(RequestBuilder.SEPARATOR);
    build.append(RequestBuilder.END);
    return build.toString();
  }

}
